const mongoose = require('mongoose');
const cateSchema = new mongoose.Schema({
    cateName: { // 分类名称
      type: String,
      required: true
    },
    cateIcon: String, // 分类图标
    cateDesc: String, // 分类描述
    pid:{
      type: String,
      default: '0' // 0 代表顶层分类
    }
  })
  
  const cateModel = mongoose.model('qf_xm', cateSchema);
  
  module.exports = cateModel;
